package com.oneday.ashop.console.base.support;

import com.oneday.ashop.core.entity.Admin;
import org.apache.shiro.SecurityUtils;

/**
 * Created by admin on 2016/7/2.
 */
public abstract class BaseServiceSupport {

    /**
     * @return 管理员
     */
    protected final Admin getCurrentAdmin() {
        return (Admin) SecurityUtils.getSubject().getPrincipal();
    }
}
